package practice05;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice05
 * @ClassName: Aodi
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/8 14:56
 * @Copyright 大牛版板所有
 */
public class Aodi extends Car {
    private double price;
    private String model;

    public Aodi() {
    }

    public Aodi(String brand, double price, String model) {
        super(brand);
        this.price = price;
        this.model = model;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void changeSpeed(){
        System.out.println(this.getBrand()+"的"+this.getModel()+"车的价格大约为"+this.getPrice());
    }
}
